.class public Lcom/nemustech/regina/AppListIndicator;
.super Lcom/nemustech/regina/Element;
.source "AppListIndicator.java"


# static fields
.field public static final FACE_BACK_AXIS_X_ANGLE:I = 0xb4

.field public static final FACE_FRONT_AXIS_X_ANGLE:I = 0x0

.field static final LOG_FLAG:Z = false

.field private static final MOVE_DURATION:I = 0xc8

.field public static final ROTATE_DURATION:I = 0xc8

.field private static final ROTATE_SPEED:F = 1.0f

.field static final TAG:Ljava/lang/String; = "AppListIndicator"


# instance fields
.field private mCurPageIndex:I

.field private mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mHolderIndex:I

.field private mHolderLocationY:F

.field private mMaximumPageNumInRow:I

.field private mNextPageIndex:I

.field private mPageIndicatorHeight:I

.field private mPageIndicatorMargin:I

.field private mPageIndicatorPadding:I

.field private mPageIndicatorWidth:I

.field private mPageNum:I

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field mRes:Lcom/nemustech/regina/ResourceCare;

.field mRotateEffectFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mRotateTick:J

.field mSelectListener:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

.field private mTargetIndex:I


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;I)V
    .locals 12
    .parameter "reginaLauncher"
    .parameter "pageNum"

    .prologue
    const v7, 0x7f02000e

    const/4 v11, 0x1

    const/4 v10, 0x0

    const/4 v9, 0x0

    .line 50
    invoke-direct {p0}, Lcom/nemustech/regina/Element;-><init>()V

    .line 87
    new-instance v5, Lcom/nemustech/regina/AppListIndicator$1;

    invoke-direct {v5, p0}, Lcom/nemustech/regina/AppListIndicator$1;-><init>(Lcom/nemustech/regina/AppListIndicator;)V

    iput-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mSelectListener:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    .line 261
    new-instance v5, Lcom/nemustech/regina/AppListIndicator$2;

    invoke-direct {v5, p0}, Lcom/nemustech/regina/AppListIndicator$2;-><init>(Lcom/nemustech/regina/AppListIndicator;)V

    iput-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRotateEffectFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 52
    new-instance v5, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>()V

    iput-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 53
    iput-object p1, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 54
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v5}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v3

    .line 55
    .local v3, screenWidth:I
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v5}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v2

    .line 57
    .local v2, screenHeight:I
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const-string v6, "AppList Indicator Holder"

    iput-object v6, v5, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 59
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v5}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v5

    iput-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    .line 62
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v6, 0x7f060098

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v5

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    .line 63
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/ResourceCare;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v5

    add-int/lit8 v5, v5, 0x1

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    add-int/2addr v5, v6

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    .line 64
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    invoke-virtual {v5, v7}, Lcom/nemustech/regina/ResourceCare;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v5

    sub-int/2addr v5, v11

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    add-int/2addr v5, v6

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    .line 65
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v6, 0x7f060099

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v5

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    .line 67
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    sub-int v5, v3, v5

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v7, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    add-int/2addr v6, v7

    div-int/2addr v5, v6

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    .line 69
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    div-int/lit8 v6, v2, 0x2

    iget-object v7, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v8, 0x7f060097

    invoke-virtual {v7, v8}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v7

    sub-int/2addr v6, v7

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderLocationY:F

    .line 71
    iput p2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    .line 72
    iput v10, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    .line 73
    iput v11, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    .line 74
    iput v10, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderIndex:I

    .line 76
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/AppListIndicator;->calcStartPosition(I)I

    move-result v4

    .line 77
    .local v4, startXposition:I
    const/4 v0, 0x0

    .local v0, index:I
    :goto_0
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-ge v0, v5, :cond_0

    .line 78
    invoke-virtual {p0, v4, v0}, Lcom/nemustech/regina/AppListIndicator;->createPageIndicatorPanel(II)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v1

    .line 79
    .local v1, pageIndicator:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mSelectListener:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setSelectListener(Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;)V

    .line 80
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 81
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v5, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 77
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 83
    .end local v1           #pageIndicator:Lcom/nemustech/tiffany/world/TFPanel;
    :cond_0
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderLocationY:F

    invoke-virtual {v5, v9, v6, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    .line 84
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v6, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v5, v6}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 85
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/AppListIndicator;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 17
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/AppListIndicator;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 17
    iget v0, p0, Lcom/nemustech/regina/AppListIndicator;->mTargetIndex:I

    return v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/AppListIndicator;)J
    .locals 2
    .parameter "x0"

    .prologue
    .line 17
    iget-wide v0, p0, Lcom/nemustech/regina/AppListIndicator;->mRotateTick:J

    return-wide v0
.end method

.method static synthetic access$300(Lcom/nemustech/regina/AppListIndicator;IIJ)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"

    .prologue
    .line 17
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/nemustech/regina/AppListIndicator;->serialRotateIndicator(IIJ)V

    return-void
.end method

.method private getHolderScrollUnit(I)F
    .locals 4
    .parameter "pageNum"

    .prologue
    .line 193
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    add-int/2addr v2, v3

    mul-int/2addr v2, p1

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    .line 195
    .local v0, width:F
    return v0
.end method

.method private getPageIndicatorPosition(II)F
    .locals 5
    .parameter "startX"
    .parameter "modelIndex"

    .prologue
    .line 130
    const/4 v0, 0x0

    .line 131
    .local v0, position:F
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    neg-int v2, p1

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v4, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    add-int/2addr v3, v4

    mul-int/2addr v3, p2

    add-int/2addr v2, v3

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v0

    .line 133
    return v0
.end method

.method private makeBackBitmap(I)Landroid/graphics/Bitmap;
    .locals 8
    .parameter "pageNum"

    .prologue
    .line 308
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    sget-object v7, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v5, v6, v7}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 309
    .local v1, bmp:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 310
    .local v2, canvas:Landroid/graphics/Canvas;
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    .line 311
    .local v4, paint:Landroid/graphics/Paint;
    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 317
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v6, 0x7f02000e

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ResourceCare;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

    .line 318
    .local v0, bitmapDrawable:Landroid/graphics/drawable/BitmapDrawable;
    invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v3

    .line 319
    .local v3, iconBmp:Landroid/graphics/Bitmap;
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    div-int/lit8 v5, v5, 0x2

    add-int/lit8 v5, v5, 0x1

    int-to-float v5, v5

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    div-int/lit8 v6, v6, 0x2

    add-int/lit8 v6, v6, 0x1

    int-to-float v6, v6

    invoke-virtual {v2, v3, v5, v6, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 322
    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 323
    sget-object v5, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 324
    const/high16 v5, 0x41a0

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 325
    add-int/lit8 v5, p1, 0x1

    invoke-static {v5}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v5

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    div-int/lit8 v6, v6, 0x2

    int-to-float v6, v6

    iget v7, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    div-int/lit8 v7, v7, 0x2

    add-int/lit8 v7, v7, 0x8

    int-to-float v7, v7

    invoke-virtual {v2, v5, v6, v7, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 326
    return-object v1
.end method

.method private makeBitmapByNum(I)Landroid/graphics/Bitmap;
    .locals 8
    .parameter "pageNum"

    .prologue
    .line 286
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    sget-object v7, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v5, v6, v7}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 287
    .local v1, bmp:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 288
    .local v2, canvas:Landroid/graphics/Canvas;
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    .line 289
    .local v4, paint:Landroid/graphics/Paint;
    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 295
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mRes:Lcom/nemustech/regina/ResourceCare;

    const v6, 0x7f02000f

    invoke-virtual {v5, v6}, Lcom/nemustech/regina/ResourceCare;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

    .line 296
    .local v0, bitmapDrawable:Landroid/graphics/drawable/BitmapDrawable;
    invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v3

    .line 297
    .local v3, iconBmp:Landroid/graphics/Bitmap;
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    div-int/lit8 v5, v5, 0x2

    add-int/lit8 v5, v5, 0x1

    int-to-float v5, v5

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorMargin:I

    div-int/lit8 v6, v6, 0x2

    add-int/lit8 v6, v6, 0x1

    int-to-float v6, v6

    invoke-virtual {v2, v3, v5, v6, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 300
    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 301
    sget-object v5, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 302
    const/high16 v5, 0x41a0

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 303
    add-int/lit8 v5, p1, 0x1

    invoke-static {v5}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v5

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    div-int/lit8 v6, v6, 0x2

    int-to-float v6, v6

    iget v7, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    div-int/lit8 v7, v7, 0x2

    add-int/lit8 v7, v7, 0x8

    int-to-float v7, v7

    invoke-virtual {v2, v5, v6, v7, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 304
    return-object v1
.end method

.method private scrollHolder(IZ)V
    .locals 6
    .parameter "newHolderIndex"
    .parameter "withAnimation"

    .prologue
    const/4 v3, 0x0

    .line 137
    neg-int v0, p1

    int-to-float v0, v0

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    invoke-direct {p0, v2}, Lcom/nemustech/regina/AppListIndicator;->getHolderScrollUnit(I)F

    move-result v2

    mul-float v1, v0, v2

    .line 138
    .local v1, toMove:F
    iput p1, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderIndex:I

    .line 140
    if-eqz p2, :cond_0

    .line 141
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderLocationY:F

    const-wide/16 v4, 0xc8

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->move(FFFJ)V

    .line 145
    :goto_0
    return-void

    .line 143
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderLocationY:F

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(FFF)V

    goto :goto_0
.end method

.method private serialRotateIndicator(IIJ)V
    .locals 12
    .parameter "startIndex"
    .parameter "endIndex"
    .parameter "tick"

    .prologue
    .line 225
    const-string v1, "AppListIndicator"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "serialRotateIndicator - start = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", end = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 227
    sub-int v1, p2, p1

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    const/4 v2, 0x1

    if-ge v1, v2, :cond_1

    .line 228
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    iput v1, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    .line 259
    :cond_0
    :goto_0
    return-void

    .line 231
    :cond_1
    move v9, p1

    .line 234
    .local v9, currentIndex:I
    sub-int v1, p2, p1

    if-lez v1, :cond_2

    .line 235
    add-int/lit8 v10, v9, 0x1

    .line 243
    .local v10, nextIndex:I
    :goto_1
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getSlotCount()I

    move-result v11

    .line 245
    .local v11, slotSize:I
    if-ltz v10, :cond_0

    if-ge v10, v11, :cond_0

    .line 247
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v0

    .line 248
    .local v0, frontToBack:Lcom/nemustech/tiffany/world/TFModel;
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v10}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v8

    .line 250
    .local v8, backToFront:Lcom/nemustech/tiffany/world/TFModel;
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 251
    iget-object v1, p0, Lcom/nemustech/regina/AppListIndicator;->mRotateEffectFinishListener:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v8, v1}, Lcom/nemustech/tiffany/world/TFModel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 253
    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    move-wide v3, p3

    invoke-virtual/range {v0 .. v6}, Lcom/nemustech/tiffany/world/TFModel;->rotate(FFJII)V

    .line 254
    const/high16 v2, 0x4334

    const/4 v3, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v1, v8

    move-wide v4, p3

    invoke-virtual/range {v1 .. v7}, Lcom/nemustech/tiffany/world/TFModel;->rotate(FFJII)V

    .line 256
    iput v10, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    goto :goto_0

    .line 236
    .end local v0           #frontToBack:Lcom/nemustech/tiffany/world/TFModel;
    .end local v8           #backToFront:Lcom/nemustech/tiffany/world/TFModel;
    .end local v10           #nextIndex:I
    .end local v11           #slotSize:I
    :cond_2
    sub-int v1, p2, p1

    if-gez v1, :cond_3

    .line 237
    const/4 v1, 0x1

    sub-int v10, v9, v1

    .restart local v10       #nextIndex:I
    goto :goto_1

    .line 239
    .end local v10           #nextIndex:I
    :cond_3
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    iput v1, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    goto :goto_0
.end method


# virtual methods
.method public calcStartPosition(I)I
    .locals 4
    .parameter "pageNum"

    .prologue
    .line 116
    const/4 v0, 0x0

    .line 117
    .local v0, startXposition:I
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    if-gt p1, v1, :cond_1

    .line 118
    rem-int/lit8 v1, p1, 0x2

    if-nez v1, :cond_0

    .line 119
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    add-int/2addr v1, v2

    const/4 v2, 0x2

    sub-int v2, p1, v2

    div-int/lit8 v2, v2, 0x2

    mul-int/2addr v1, v2

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    div-int/lit8 v2, v2, 0x2

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    div-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    add-int v0, v1, v2

    :goto_0
    move v1, v0

    .line 125
    :goto_1
    return v1

    .line 122
    :cond_0
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorPadding:I

    add-int/2addr v1, v2

    const/4 v2, 0x1

    sub-int v2, p1, v2

    div-int/lit8 v2, v2, 0x2

    mul-int v0, v1, v2

    goto :goto_0

    .line 125
    :cond_1
    iget v1, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/AppListIndicator;->calcStartPosition(I)I

    move-result v1

    goto :goto_1
.end method

.method public canBeRepositioned()Z
    .locals 1

    .prologue
    .line 349
    const/4 v0, 0x0

    return v0
.end method

.method public createPageIndicatorPanel(II)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 8
    .parameter "startX"
    .parameter "modelIndex"

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x0

    .line 98
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v4, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorWidth:I

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/AppListIndicator;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageIndicatorHeight:I

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 100
    .local v2, pageIndicator:Lcom/nemustech/tiffany/world/TFPanel;
    const-string v3, "AppList Indicator Panel"

    iput-object v3, v2, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 101
    iget-object v3, p0, Lcom/nemustech/regina/AppListIndicator;->mSelectListener:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setSelectListener(Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;)V

    .line 102
    iget-object v3, p0, Lcom/nemustech/regina/AppListIndicator;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v3, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 103
    invoke-virtual {v2, v7}, Lcom/nemustech/tiffany/world/TFPanel;->banChiselFringe(Z)V

    .line 105
    invoke-direct {p0, p2}, Lcom/nemustech/regina/AppListIndicator;->makeBitmapByNum(I)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 106
    .local v1, frontBitmap:Landroid/graphics/Bitmap;
    invoke-direct {p0, p2}, Lcom/nemustech/regina/AppListIndicator;->makeBackBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 107
    .local v0, backBitmap:Landroid/graphics/Bitmap;
    invoke-virtual {v2, v7, v0}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 108
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    .line 109
    :cond_0
    const/4 v3, 0x1

    invoke-virtual {v2, v3, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 110
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 111
    :cond_1
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/AppListIndicator;->getPageIndicatorPosition(II)F

    move-result v3

    invoke-virtual {v2, v3, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 112
    return-object v2
.end method

.method public getHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 1

    .prologue
    .line 330
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    return-object v0
.end method

.method public getInternalObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 335
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    return-object v0
.end method

.method public getSnapShot()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 356
    const/4 v0, 0x0

    return-object v0
.end method

.method public getSnapShot(I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "faceIndex"

    .prologue
    .line 363
    const/4 v0, 0x0

    return-object v0
.end method

.method public getSnapShotOpposite()Landroid/graphics/Bitmap;
    .locals 1

    .prologue
    .line 370
    const/4 v0, 0x0

    return-object v0
.end method

.method protected isObjectEventConsumer(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 345
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->contains(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public isOwnerOf(Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 1
    .parameter "object"

    .prologue
    .line 340
    iget-object v0, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->searchForChildObject(Lcom/nemustech/tiffany/world/TFObject;)Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public moveIndicator(I)V
    .locals 6
    .parameter "newPageIndex"

    .prologue
    const/4 v5, 0x1

    const/high16 v4, 0x4334

    .line 199
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    if-eq p1, v2, :cond_1

    .line 200
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    div-int v0, p1, v2

    .line 201
    .local v0, newHolderIndex:I
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderIndex:I

    if-eq v0, v2, :cond_0

    .line 202
    invoke-direct {p0, v0, v5}, Lcom/nemustech/regina/AppListIndicator;->scrollHolder(IZ)V

    .line 204
    :cond_0
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    rem-int v2, p1, v2

    iput v2, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    .line 206
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    sub-int/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    if-le v2, v5, :cond_3

    .line 207
    iget-object v2, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->isVisible()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 208
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    iput v2, p0, Lcom/nemustech/regina/AppListIndicator;->mTargetIndex:I

    .line 209
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    sub-int/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v1

    .line 210
    .local v1, rotateCount:I
    const/16 v2, 0xc8

    div-int/2addr v2, v1

    int-to-long v2, v2

    iput-wide v2, p0, Lcom/nemustech/regina/AppListIndicator;->mRotateTick:J

    .line 211
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    iget v3, p0, Lcom/nemustech/regina/AppListIndicator;->mTargetIndex:I

    iget-wide v4, p0, Lcom/nemustech/regina/AppListIndicator;->mRotateTick:J

    invoke-direct {p0, v2, v3, v4, v5}, Lcom/nemustech/regina/AppListIndicator;->serialRotateIndicator(IIJ)V

    .line 221
    .end local v0           #newHolderIndex:I
    .end local v1           #rotateCount:I
    :cond_1
    :goto_0
    return-void

    .line 213
    .restart local v0       #newHolderIndex:I
    :cond_2
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    invoke-virtual {p0, v2, v4}, Lcom/nemustech/regina/AppListIndicator;->rotateIndicator(IF)V

    goto :goto_0

    .line 216
    :cond_3
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    const/4 v3, 0x0

    invoke-virtual {p0, v2, v3}, Lcom/nemustech/regina/AppListIndicator;->rotateIndicator(IF)V

    .line 217
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    invoke-virtual {p0, v2, v4}, Lcom/nemustech/regina/AppListIndicator;->rotateIndicator(IF)V

    .line 218
    iget v2, p0, Lcom/nemustech/regina/AppListIndicator;->mNextPageIndex:I

    iput v2, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    goto :goto_0
.end method

.method public rotateIndicator(IF)V
    .locals 5
    .parameter "pageIndex"
    .parameter "angleX"

    .prologue
    const/4 v4, 0x0

    .line 272
    iget-object v2, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v2, p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v1

    .line 273
    .local v1, pageIndicator:Lcom/nemustech/tiffany/world/TFModel;
    if-eqz v1, :cond_0

    .line 274
    invoke-virtual {v1, v4}, Lcom/nemustech/tiffany/world/TFModel;->getAngle(I)F

    move-result v0

    .line 277
    .local v0, curAngle:F
    cmpl-float v2, v0, p2

    if-eqz v2, :cond_0

    .line 280
    const/4 v2, 0x0

    const/high16 v3, 0x3f80

    invoke-virtual {v1, p2, v2, v3, v4}, Lcom/nemustech/tiffany/world/TFModel;->rotate(FFFI)V

    .line 283
    .end local v0           #curAngle:F
    :cond_0
    return-void
.end method

.method public setIndicatorSize(I)V
    .locals 10
    .parameter "newSize"

    .prologue
    const/4 v9, 0x1

    const/4 v8, 0x0

    const/4 v7, 0x0

    .line 148
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-le p1, v5, :cond_1

    .line 149
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/AppListIndicator;->calcStartPosition(I)I

    move-result v4

    .line 150
    .local v4, startX:I
    const/4 v1, 0x0

    .local v1, index:I
    :goto_0
    if-ge v1, p1, :cond_4

    .line 151
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-ge v1, v5, :cond_0

    .line 152
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v5, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v5

    invoke-direct {p0, v4, v1}, Lcom/nemustech/regina/AppListIndicator;->getPageIndicatorPosition(II)F

    move-result v6

    invoke-virtual {v5, v6, v7, v7}, Lcom/nemustech/tiffany/world/TFModel;->locate(FFF)V

    .line 150
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 154
    :cond_0
    invoke-virtual {p0, v4, v1}, Lcom/nemustech/regina/AppListIndicator;->createPageIndicatorPanel(II)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v3

    .line 155
    .local v3, pageIndicator:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v3, v5}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    goto :goto_1

    .line 158
    .end local v1           #index:I
    .end local v3           #pageIndicator:Lcom/nemustech/tiffany/world/TFPanel;
    .end local v4           #startX:I
    :cond_1
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-ge p1, v5, :cond_4

    .line 159
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/AppListIndicator;->calcStartPosition(I)I

    move-result v4

    .line 161
    .restart local v4       #startX:I
    const/4 v1, 0x0

    .restart local v1       #index:I
    :goto_2
    if-ge v1, p1, :cond_2

    .line 162
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v5, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v5

    invoke-direct {p0, v4, v1}, Lcom/nemustech/regina/AppListIndicator;->getPageIndicatorPosition(II)F

    move-result v6

    invoke-virtual {v5, v6, v7, v7}, Lcom/nemustech/tiffany/world/TFModel;->locate(FFF)V

    .line 161
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 165
    :cond_2
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    sub-int v1, v5, v9

    :goto_3
    if-lt v1, p1, :cond_4

    .line 166
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v5, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v0

    .line 167
    .local v0, detachModel:Lcom/nemustech/tiffany/world/TFModel;
    if-eqz v0, :cond_3

    .line 168
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v5, v0}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z

    .line 169
    iget-object v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/nemustech/tiffany/world/TFModel;->detachFrom(Lcom/nemustech/tiffany/world/TFWorld;)V

    .line 165
    :cond_3
    add-int/lit8 v1, v1, -0x1

    goto :goto_3

    .line 175
    .end local v0           #detachModel:Lcom/nemustech/tiffany/world/TFModel;
    .end local v1           #index:I
    .end local v4           #startX:I
    :cond_4
    iput p1, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    .line 177
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-lt v5, v6, :cond_5

    .line 178
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    sub-int/2addr v5, v9

    iput v5, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    .line 181
    :cond_5
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mPageNum:I

    if-nez v5, :cond_6

    .line 182
    iput v8, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    .line 185
    :cond_6
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    iget v6, p0, Lcom/nemustech/regina/AppListIndicator;->mMaximumPageNumInRow:I

    div-int v2, v5, v6

    .line 187
    .local v2, newHolderIndex:I
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mHolderIndex:I

    if-eq v2, v5, :cond_7

    .line 188
    invoke-direct {p0, v2, v8}, Lcom/nemustech/regina/AppListIndicator;->scrollHolder(IZ)V

    .line 189
    :cond_7
    iget v5, p0, Lcom/nemustech/regina/AppListIndicator;->mCurPageIndex:I

    const/high16 v6, 0x4334

    invoke-virtual {p0, v5, v6}, Lcom/nemustech/regina/AppListIndicator;->rotateIndicator(IF)V

    .line 190
    return-void
.end method
